import axios from '@/assets/common/request'
import { ElMessage } from 'element-plus'

const get = (url, params) => {
    return axios.get(url, {
        params
    })
}

const post = (url, body, config) => {
    return axios.post(url, body, config)
}

const put = (url, body, config) => {
    return axios.put(url, body, config)
}

const del = (url, params) => {
    return axios.delete(url, {
        params
    })
}

export default {
    get,
    post,
    put,
    delete: del
}

